<?php
//测试页
Route::get('/test', 'Index\IndexController@test');
//去除企业表相同的手机号码
Route::get('company/company_mobile_merge', 'Index\TestController@companyMobileMerge')->name('company_mobile_merge');

//前台路由，带手机切换中间件
Route::group(['namespace' => 'Index', 'middleware' => ['isMobile']], function(){
    //首页
    Route::get('/', 'IndexController@index');

    //找工作
    Route::match(['get', 'post'], 'job', 'JobController@job');
    //分站找找工作
    Route::match(['get', 'post'], 'station_job', 'JobController@stationJob');
    //找工作信息页面
    Route::get('jobinfo_{cid}.html', 'JobController@jobinfo');

    //企业介绍页面
    Route::get('comabout_{cid}.html', 'JobController@comabout');

    //分享二维码
    Route::get('to_share', 'JobController@toShare');
    //job页面，ajax
    Route::match(['get', 'post'], 'handle_ajax', 'JobController@handle_ajax');

    Route::match(['get', 'post'], 'personnel', 'PersonnelController@index');
    //预览人才页面
    Route::match(['get', 'post'], 'resume_{id}.html', 'ResumeController@index');

    //资讯
    Route::match(['get', 'post'], 'news', 'NewsController@index')->name('news');
    //资讯查看
    Route::match(['get', 'post'], 'newsinfo_{id}.html', 'NewsInfoController@index')->name('newsinfo');

});
//前台路由无中间件
Route::group(['namespace' => 'Index'], function(){
    //广告尾巴
    Route::get('adtail_{cid}', 'AdTailController@getAdTail');
    //名企招聘
    Route::post('ming_p', 'IndexController@mingP');
    //强烈推荐
    Route::post('urgent', 'IndexController@urgent');

    //手机访问
    Route::get('mobile_help', 'MobileController@help');
    //智能刷新
    Route::get('smart_refresh', 'IndexController@smartRefresh');

    //分享二维码
    Route::get('to_share', 'JobController@toShare');
    //app_code生成
    Route::get('app_down', 'JobController@appDown');
    Route::get('app_company_down', 'JobController@appCompanyDown');
    //job页面，ajax
    Route::match(['get', 'post'], 'handle_ajax', 'JobController@handle_ajax');

    //网站内容
    Route::get('webcontent_{type}.html', 'WebContentController@WebContent')->name("WebContent");
    //百度地图
    Route::get('baidumap_{cid}.html', 'BaiduMapController@index')->name("baiduMap");

    //招聘会
    Route::get('job_fair', 'JobFairController@jobFair');
    Route::get('traffic', 'JobFairController@trafficMap');
    Route::get('job_fair_{id}.html', 'JobFairController@jobFairInfo')->name('job_fair_info');
    Route::post('signup', 'JobFairController@signUp');

    //校园招聘
    Route::get('campusrecruit', 'CampusRecruitController@campusRecruit');

    //微招聘
    Route::get('micro_recruitment_{com_id}.html', 'MicroController@microRecruitment');//公司基本信息资料
    Route::post('micro_like', 'MicroController@microLike');//微点赞

    //设置App下载session
    Route::get('personal_session', 'IndexController@personalSession');//设置App下载session
    Route::get('company_session', 'IndexController@companySession');//设置App下载session

});

//前台英文简历页面
//Route::group(['namespace' => 'Index\English'], function(){
//预览人才页面
//    Route::match(['get', 'post'], 'english/resume_{id}.html', 'ResumeController@index');
//});

//qq个人登录链接
Route::group(['namespace' => 'Personal\Auth', 'prefix' => 'personal'], function(){
    //QQ登录链接
    Route::get('qqlogin', 'QQLoginController@qqLogin');
    //QQ返回值
    Route::get('qq_connect', 'QQLoginController@qqConnect');
    //QQ与现有账号绑定页面
    Route::get('qqbinding', 'QQLoginController@qqBinDing');
    //保存账号绑定
    Route::post('stroyqqbinding', 'QQLoginController@stroyQQBinDing');
    //QQ绑定新注册账号
    Route::get('newqqbinding', 'QQLoginController@newQQBinDing');
});
//QQ个人移动端绑定
Route::group(['namespace' => 'Mobile\Personal\Auth', 'prefix' => 'mobile/personal'], function(){
    //绑定账号
    Route::get('qqbinding', 'QQLoginController@qqBinDing');
    //保存账号绑定
    Route::post('stroyqqbinding', 'QQLoginController@stroyQQBinDing');
    //QQ绑定新注册账号
    Route::get('newqqbinding', 'QQLoginController@newQQBinDing');
});

//qq企业登录链接
Route::group(['namespace' => 'Company\Auth', 'prefix' => 'company'], function(){
    //QQ企业登录链接
    Route::get('qqlogin', 'QQLoginController@companyQQLogin');
    //QQ企业返回值
    Route::get('qq_connect', 'QQLoginController@companyQQConnect');
    //QQ与企业现有账号绑定页面
    Route::get('qqbinding', 'QQLoginController@companyQQBinDing');
    //保存账号绑定
    Route::post('stroycompanyqqbinding', 'QQLoginController@stroyCompanyQQBinDing');
    //QQ绑定新注册账号
    Route::get('newqqbinding', 'QQLoginController@companyNewQQBinDing');
});
//QQ企业移动端绑定
Route::group(['namespace' => 'Mobile\Company\Auth', 'prefix' => 'mobile/company'], function(){
    //绑定账号
    Route::get('qqbinding', 'QQLoginController@qqBinDing');
    //保存账号绑定
    Route::post('stroyqqbinding', 'QQLoginController@stroyQQBinDing');
    //QQ绑定新注册账号
    Route::get('newqqbinding', 'QQLoginController@newQQBinDing');
});
//QQ 取消绑定
Route::post('personal/cancel_bind_qq', 'Personal\PersonalUserController@cancelBindQq');
Route::post('company/cancel_bind_qq', 'Company\CompanyUserController@cancelBindQq');

//取消微信绑定
Route::post('company/cancel_wxbind', 'Company\CompanyUserController@cancel_wxbind');
Route::post('personal/cancel_wxbind', 'Personal\PersonalUserController@cancel_wxbind');

//微信 个人
Route::group(['namespace' => 'Personal', 'prefix' => 'personal'], function(){
    //链接微信
    Route::match(['get', 'post'], 'weixinlink', 'MpWeiXinController@WeiXinLink');
    //开放平台，扫一扫登录
    Route::get('weixinopenlogin', 'MpWeiXinController@weiXinOpenLogin');
    //个人微信与现有账号绑定页面
    Route::get('weixinbinding', 'MpWeiXinController@WeiXinBinDing');
    //个人微信绑定新注册账号
    Route::get('newweixinbinding', 'MpWeiXinController@newWeiXinBinDing');
    //保存个人微信绑定
    Route::post('stroyweixinbinding', 'MpWeiXinController@stroyWeiXinBinDing');
    //公众平台解绑账号
    Route::get('clearbinding/{uid}/{wechatmpopenid}', 'MpWeiXinController@clearBinDing');


});
//微信 手机个人
Route::group(['namespace' => 'Mobile\Personal', 'prefix' => 'mobile/personal'], function(){
    //公众平台绑定账号
    Route::get('binding', 'MpWeiXinController@binDing');
    //保存公众平台绑定账号
    Route::post('stroybinding', 'MpWeiXinController@stroyBinDing');
    //保存公众平台绑定账号->with mobile
    Route::post('stroybindingwithmobile', 'MpWeiXinController@stroyBinDingWithMobile');
    //注册新账号，并绑定
    Route::get('regbinding', 'MpWeiXinController@regBinDing');
});
Route::group(['namespace' => 'Company', 'prefix' => 'company'], function(){
    //链接微信
    Route::match(['get', 'post'], 'weixinlink', 'MpWeiXinController@WeiXinLink');
    //开放平台，扫一扫登录
    Route::get('weixinopenlogin', 'MpWeiXinController@weiXinOpenLogin');
    //个人微信与现有账号绑定页面
    Route::get('weixinbinding', 'MpWeiXinController@WeiXinBinDing');
    //个人微信绑定新注册账号
    Route::get('newweixinbinding', 'MpWeiXinController@newWeiXinBinDing');
    //保存个人微信绑定
    Route::post('stroyweixinbinding', 'MpWeiXinController@stroyWeiXinBinDing');
    //消息推送
    Route::get('messagepush/{openid}/{message}', 'MpWeiXinController@messagePush');
    //公众平台解绑账号
    Route::get('clearbinding/{uid}/{wechatmpopenid}', 'MpWeiXinController@clearBinDing');
});
//微信 手机企业
Route::group(['namespace' => 'Mobile\Company', 'prefix' => 'mobile/company'], function(){
    //公众平台绑定账号
    Route::get('binding', 'MpWeiXinController@binDing');
    //保存公众平台绑定账号
    Route::post('stroybinding', 'MpWeiXinController@stroyBinDing');
    //注册新账号，并绑定
    Route::get('regbinding', 'MpWeiXinController@regBinDing');
});

//外部链接自动登录用户认证-企业用户路由
Route::group(['namespace' => 'Company', 'prefix' => 'company'], function(){
    //crm系统过来的链接
    Route::get('crm_login', 'LoginController@crmLogin');
});

//个人找回密码
Route::group(['namespace' => 'Personal', 'prefix' => 'personal'], function(){
    Route::get('find_password', 'PasswordController@find');// 个人找回密码页
    Route::get('find_password2', 'PasswordController@find2');// 个人找回密码页
    Route::post('mobile_find', 'PasswordController@mobileFind');//手机找回
    Route::post('mobile_get_code', 'PasswordController@getCode');//获取手机验证码
    Route::post('email_find', 'PasswordController@emailFind');//邮箱找回
    Route::get('find_password3', 'PasswordController@find3');//第三步重置密码
    Route::post('find_password3', 'PasswordController@set');//设置密码
    Route::get('find_password4', 'PasswordController@find4');//成功提示
});

//企业找回密码
Route::group(['namespace' => 'Company', 'prefix' => 'company'], function(){
    Route::get('find_password', 'PasswordController@find');// 个人找回密码页
    Route::get('find_password2', 'PasswordController@find2');// 个人找回密码页
    Route::post('mobile_find', 'PasswordController@mobileFind');//手机找回
    Route::post('mobile_get_code', 'PasswordController@getCode');//获取手机验证码
    Route::post('email_find', 'PasswordController@emailFind');//邮箱找回
    Route::get('find_password3', 'PasswordController@find3');//第三步重置密码
    Route::post('find_password3', 'PasswordController@set');//设置密码
    Route::get('find_password4', 'PasswordController@find4');//成功提示
});

//-------个人用户-------------------------------------------------------------------------------------------------------
//个人用户登录注册路由用户认证
Route::group(['namespace' => 'Personal\Auth', 'prefix' => 'personal'], function(){
    Route::auth();
    Route::get('login', 'AuthController@getLogin');
    Route::post('login', 'AuthController@postLogin');
    Route::get('register', 'AuthController@getRegister');
    Route::post('register', 'AuthController@postRegister');
    Route::get('logout', 'AuthController@logout');
});

//个人ajax验证路由
Route::group(['namespace' => 'Personal', 'prefix' => 'personal'], function(){
    //个人注册ajax验证路由
    Route::post('ajax_username', 'RegisterController@ajaxUsername');
    Route::post('ajax_mobile', 'RegisterController@ajaxMobile');
    Route::post('ajax_mob_code', 'RegisterController@ajaxMobCode');
    Route::post('ajax_sms_url', 'RegisterController@ajaxSmsUrl');
    //个人登录ajax验证路由
    Route::post('ajax_login', 'LoginController@ajaxLogin');
    Route::post('ajax_mob_login_code', 'LoginController@ajaxMobLoginCode');
    Route::post('ajax_mobile_login', 'LoginController@ajaxMobileLogin');
    //ajax个人短信验证绑定
    Route::post('ajax_job_code', 'PersonalUserController@ajaxJobCode');
    Route::post('ajax_job_sms', 'PersonalUserController@ajaxJobSms');
    //邮箱激活成功和失败
    Route::get('activation_mail', 'PersonalUserController@activationMail');
    Route::get('bind_email_success', 'PersonalUserController@bindEmailSuccess');
    Route::get('bind_email_error', 'PersonalUserController@bindEmailError');
    //微信
    Route::any('api', 'WeChatController@api');

    //注册信息
    Route::post('reg_info', 'PersonalUserController@regInfo');
    Route::post('post_password_two', 'PersonalUserController@postModPasswordTwo');

    //个人地标设置地图
    Route::get('place_map', 'ResumeController@placeMap');
    Route::get('place_update', 'ResumeController@placeUpdate');

});

//个人用户登录路由 中间件阻止用户
Route::group(['namespace' => 'Personal', 'prefix' => 'personal', 'middleware' => ['personalAuth:personal']], function(){
    //注成欢迎页,提示填写简历
    Route::get('register_welcome', 'RegisterController@welcome');
    //账户中心
    Route::get('welcome', 'WelcomeController@index');
    Route::post('ajax_refresh', 'WelcomeController@ajaxRefresh');
    //创建一份我的简历
    Route::get('my_resume', 'ResumeController@myResume');
    Route::post('basic_info', 'ResumeController@basicInfo');
    //我的简历管理
    Route::get('resume_mange', 'ResumeController@resumeMange');
    //我的简历基本信息求职意向自我评价
    Route::post('resume_basic', 'ResumeController@resumeBasic');
    Route::post('resume_objective', 'ResumeController@resumeObjective');
    Route::post('resume_evaluation', 'ResumeController@resumeEvaluation');
    //工作经历
    Route::post('add_work_exp', 'ResumeController@addWorkExp');
    Route::post('mod_work_exp', 'ResumeController@modWorkExp');
    Route::post('edit_work_exp', 'ResumeController@editWorkExp');
    Route::post('del_work_exp', 'ResumeController@delWorkExp');
    //教育经历
    Route::post('add_edu_exp', 'ResumeController@addEduExp');
    Route::post('mod_edu_exp', 'ResumeController@modEduExp');
    Route::post('edit_edu_exp', 'ResumeController@editEduExp');
    Route::post('del_edu_exp', 'ResumeController@delEduExp');
    //项目经验
    Route::post('add_project_exp', 'ResumeController@addProjectExp');
    Route::post('mod_project_exp', 'ResumeController@modProjectExp');
    Route::post('edit_project_exp', 'ResumeController@editProjectExp');
    Route::post('del_project_exp', 'ResumeController@delProjectExp');
    //语言能力
    Route::post('add_language', 'ResumeController@addLanguage');
    //技能专长
    Route::post('add_skill', 'ResumeController@addSkill');
    //证书
    Route::post('add_certificate', 'ResumeController@addCertificate');
    //其它信息
    Route::post('add_other', 'ResumeController@addOther');
    Route::post('mod_other', 'ResumeController@modOther');
    Route::post('edit_other', 'ResumeController@editOther');
    Route::post('del_other', 'ResumeController@delOther');
    //我的作品
    Route::post('add_works', 'ResumeController@addWorks');
    Route::post('mod_works', 'ResumeController@modWorks');
    Route::post('edit_works', 'ResumeController@editWorks');
    Route::post('del_works', 'ResumeController@delWorks');
    //上传文件
    Route::post('fileupload', 'ResumeWorksImgController@fileUpload');
    Route::post('uploadavatar', 'ResumeController@uploadAvatar');
    //刷新简历
    Route::match(['get', 'post'], 'resume_refresh', 'ResumeController@resumeRefresh');
    Route::match(['get', 'post'], 'post_resume_refresh', 'ResumeController@postResumeRefresh');
    Route::get('warmtips', 'ResumeController@resumeRefresh');

    //简历管理
    Route::get('resume_backup', 'ResumeController@resumeBackup');
    Route::get('set_default/{id}', 'ResumeController@setDefault');//设置默认简历
    Route::post('del_resume/{id}', 'ResumeController@delResume');//删除简历

    //账号设置
    Route::get('set_account', 'PersonalUserController@setAccount');
    //修改密码
    Route::get('mod_password', 'PersonalUserController@modPassword');
    Route::post('post_mod_password', 'PersonalUserController@postModPassword');
    Route::post('ajax_pass', 'PersonalUserController@ajaxPass');
    //验证邮箱
    Route::post('email_send', 'PersonalUserController@emailSend');
    //个人绑定手机
    Route::post('bind_mobile', 'PersonalUserController@bindMobile');

    //隐私设置
    Route::match(['get', 'post'], 'privacy', 'ShieldCompaniesController@privacy');
    Route::post('delshield', 'ShieldCompaniesController@delShield');
    Route::post('addshield', 'ShieldCompaniesController@addShield');
    //面试通知
    Route::match(['get', 'post'], 'interview', 'InterviewController@interview');
    Route::post('interview_status', 'InterviewController@interviewStatus');
    Route::post('interview_del', 'InterviewController@interviewDel');
    //简历投递记录
    Route::match(['get', 'post'], 'resume_send', 'ResumeSendController@resumeSend');
    Route::post('post_del', 'ResumeSendController@postDel');
    Route::post('post_undo', 'ResumeSendController@postUndo');
    Route::post('post_info', 'ResumeSendController@postInfo');
    //职位收藏夹
    Route::match(['get', 'post'], 'favorites', 'FavoritesController@favorites');
    Route::post('favorites_send', 'FavoritesController@favoritesSend');
    Route::post('favorites_curr_del', 'FavoritesController@favoritesCurrDel');
    //谁浏览了我
    Route::match(['get', 'post'], 'browse_resume', 'BrowseResumeController@browseResume');
    Route::match(['get', 'post'], 'buy_resume', 'BuyResumeController@buyResume');
    //浏览企业记录
    Route::match(['get', 'post'], 'browse_company', 'BrowseCompanyController@browseCompany');
    //浏览职位记录
    Route::match(['get', 'post'], 'browse_job', 'BrowseJobController@browseJob');
    Route::post('browse_job_send', 'BrowseJobController@browseJobSend');
    //精确搜索
    Route::match(['get', 'post'], 'accurate_search', 'SearchEngineController@accurateSearch');
    //搜索器资源控制器
    Route::resource('search', 'SearchEngineController');
    //推荐给您的职位
    Route::get('recommended_post', 'SearchEngineController@recommendedPost');
    //申请工作职位
//    Route::match(['get', 'post'], 'applyjob', 'ResumeSendController@applyJob');
    Route::get('applyjob', 'ResumeSendController@applyJob');

    //个人职位收藏
    Route::get('personfavorites', 'FavoritesController@personfavorites');

    //获取评测活动列表
    Route::get('apm_activity_list/{resumeId}', 'ApmController@apmActivityList')->name('apmActivityList');
    //获取测评地址
    Route::get('apm_test_url', 'ApmController@apmTestUrl')->name('apmTestUrl');
    //评测报表
    Route::get('apm_report', 'ApmController@apmReport')->name('apmReport');
    /*****************弹出刷新*********************/
    //设置个人cookie
    Route::get('set_personal_cookie', 'PersonalCookieController@setPersonalCookie');
    //cookieajax刷新简历
    Route::get('cookie_resume_refresh', 'PersonalCookieController@cookieResumeRefresh');

});


//个人用户登录路由 中间件阻止用户
Route::group(['namespace' => 'Personal\English', 'prefix' => 'personal/english', 'middleware' => ['personalAuth:personal']], function(){
    //注成欢迎页,提示填写简历
    Route::get('register_welcome', 'RegisterController@welcome');

    //创建一份我的英文简历
    Route::get('my_resume', 'ResumeController@myResume');
    Route::post('basic_info', 'ResumeController@basicInfo');
    //我的简历管理
    Route::get('resume_mange', 'ResumeController@resumeMange');
    //我的简历基本信息求职意向自我评价
    Route::post('resume_basic', 'ResumeController@resumeBasic');
    Route::post('resume_objective', 'ResumeController@resumeObjective');
    Route::post('resume_evaluation', 'ResumeController@resumeEvaluation');
    //工作经历
    Route::post('add_work_exp', 'ResumeController@addWorkExp');
    Route::post('mod_work_exp', 'ResumeController@modWorkExp');
    Route::post('edit_work_exp', 'ResumeController@editWorkExp');
    Route::post('del_work_exp', 'ResumeController@delWorkExp');
    //教育经历
    Route::post('add_edu_exp', 'ResumeController@addEduExp');
    Route::post('mod_edu_exp', 'ResumeController@modEduExp');
    Route::post('edit_edu_exp', 'ResumeController@editEduExp');
    Route::post('del_edu_exp', 'ResumeController@delEduExp');
    //项目经验
    Route::post('add_project_exp', 'ResumeController@addProjectExp');
    Route::post('mod_project_exp', 'ResumeController@modProjectExp');
    Route::post('edit_project_exp', 'ResumeController@editProjectExp');
    Route::post('del_project_exp', 'ResumeController@delProjectExp');
    //语言能力
    Route::post('add_language', 'ResumeController@addLanguage');
    //技能专长
    Route::post('add_skill', 'ResumeController@addSkill');
    //证书
    Route::post('add_certificate', 'ResumeController@addCertificate');
    //其它信息
    Route::post('add_other', 'ResumeController@addOther');
    Route::post('mod_other', 'ResumeController@modOther');
    Route::post('edit_other', 'ResumeController@editOther');
    Route::post('del_other', 'ResumeController@delOther');
    //我的作品
    Route::post('add_works', 'ResumeController@addWorks');
    Route::post('mod_works', 'ResumeController@modWorks');
    Route::post('edit_works', 'ResumeController@editWorks');
    Route::post('del_works', 'ResumeController@delWorks');
    //上传文件
    Route::post('fileupload', 'ResumeWorksImgController@fileUpload');
    Route::post('uploadavatar', 'ResumeController@uploadAvatar');
    //刷新简历
    Route::match(['get', 'post'], 'resume_refresh', 'ResumeController@resumeRefresh');
    Route::match(['get', 'post'], 'post_resume_refresh', 'ResumeController@postResumeRefresh');

    Route::get('warmtips', 'ResumeController@resumeRefresh');

    //备份简历
    Route::get('resume_backup', 'ResumeController@resumeBackup');
    Route::get('set_default/{id}', 'ResumeController@setDefault');//设置默认简历
    Route::post('del_resume/{id}', 'ResumeController@delResume');//删除简历

});


//个人英文ajax验证路由
Route::group(['namespace' => 'Personal\English', 'prefix' => 'personal/english'], function(){
    //个人地标设置地图
    Route::get('place_map', 'ResumeController@placeMap');
    Route::get('place_update', 'ResumeController@placeUpdate');

});

//---------企业用户-----------------------------------------------------------------------------------------------------
//企业用户登录注册路由用户认证
Route::group(['namespace' => 'Company\Auth', 'prefix' => 'company'], function(){
    Route::auth();
    Route::get('login', 'AuthController@getLogin');
    Route::post('login', 'AuthController@postLogin');
    Route::get('register', 'AuthController@getRegister');
    Route::post('register', 'AuthController@postRegister');
    Route::get('logout', 'AuthController@logout');

});
//企业用户路由
Route::group(['namespace' => 'Company', 'prefix' => 'company'], function(){

    //切换到普通注册
    Route::get('ordinary_register', 'RegisterController@getOrdinaryRegister');
    Route::post('ordinary_register', 'RegisterController@postOrdinaryRegister');

    //ajax验证注册路由
    Route::post('ajax_username', 'RegisterController@ajaxUsername');
    Route::post('ajax_company_login', 'LoginController@ajaxCompanyLogin');
    Route::post('ajax_mob_code', 'RegisterController@ajaxMobCode');
    //企业短信验证
    Route::post('ajax_com_code', 'CompanyUserController@ajaxComCode');
    Route::post('ajax_com_sms', 'CompanyUserController@ajaxComSms');
    //注册
    Route::get('register', 'RegisterController@index');
    //邮箱验证失败和成功
    Route::get('activation_mail', 'CompanyUserController@activationMail');
    Route::get('bind_email_success', 'CompanyUserController@bindEmailSuccess');
    Route::get('bind_email_error', 'CompanyUserController@bindEmailError');
    //支付宝异步回调页面
    Route::post('my_order_alipay_ajax', 'MyOrderController@alipayAjax')->name("myOrder.alipayAjax");
    //微信支付异步回调地址
    Route::match(['get', 'post'], 'my_order_mpweixin_notice', 'MyOrderController@mpWeiXinNotice')->name("myOrder.mpWeiXinNotice");
});
//企业用户中间件路由
Route::group(['namespace' => 'Company', 'prefix' => 'company', 'middleware' => ['companyAuth:company']], function(){
    //注册
    Route::get('index', 'RegisterController@index');
    Route::get('register_basic', 'RegisterController@registerBasic');
    Route::post('post_register_basic', 'RegisterController@postRegisterBasic');
    Route::get('iframe_map', 'RegisterController@iframeMap');
    //企业账户中心
    Route::get('welcome', 'WelcomeController@index');//欢迎窗口
    Route::post('logoupload', 'BasicController@logoUpload');//logo上传
    Route::post('set_api_session', 'WelcomeController@setApiSession');//logo上传

    Route::get('jobpublish', 'JobController@publish');//发布职位
    Route::post('jobpublish', 'JobController@store');//发布职位
    Route::match(['get', 'post'], 'jobadmin', 'JobController@admin');//职位管理

    Route::post('job_template', 'JobController@jobTemplate');//岗位模板

    Route::match(['get', 'post'], 'job_status', 'JobController@status');//设置状态
    Route::get('urgent', 'JobController@urgent');//职位加急
    Route::get('job/{id}/edit', 'JobController@edit');//编辑职位

    Route::post('job/{id}/edit', 'JobController@update');//更新职位
    Route::match(['get', 'post'], 'refresh', 'JobController@refresh');//职位刷新
    Route::get('intelligent_search', 'IntelligentController@search');//智能简历推荐搜索

    Route::get('browse_job', 'BrowseJobController@index');//谁浏览过我的职位置
    Route::post('browse_job_tofavorite', 'BrowseJobController@toFavorite');//将谁浏览过我的职位置放入人才库

    //简历管理
    Route::match(['get', 'post'], 'resume_message', 'ResumeController@message');//简历消息/收到应聘简历

    Route::post('resume_status', 'ResumeController@status');//设置简历消息状况
    Route::post('destroy', 'ResumeController@destroy');//删除简历
    Route::post('resume_tofavorite', 'ResumeController@toFavorite');//收到简历放入人才库

    Route::get('resume_favorite', 'FavoriteController@index');//企业人才库
    Route::post('resume_favorite_status', 'FavoriteController@status');//删除人才库

    Route::get('resume_buy', 'BuyController@index');//已购买简历
    Route::get('browse_resume', 'BrowseController@index');//浏览简历记录
    Route::get('browse_company', 'BrowseCompanyController@index');//谁浏览过我

    //cms_browse_company
    Route::match(['get', 'post'], 'interview_manage', 'InterviewController@message');//邀约面试记录
    Route::post('interview_tofavorite', 'InterviewController@tofavorite');//放入企业人才库
    Route::post('interview_destroy', 'InterviewController@destroy');//删除人才库

    Route::get('basic_info', 'BasicController@info');//企业基本资料
    Route::post('basic_info', 'BasicController@postInfo');//企业基本资料提交
    Route::get('go_home', 'BasicController@goHome');//转到招聘主页

    Route::resource('department', 'DepartmentController');//部门资源管理器
    Route::post('department', 'DepartmentController@index');//部门搜索
    Route::post('department/store', 'DepartmentController@store');//部门添加提交
    Route::get('department/{id}/destroy', 'DepartmentController@destroy');//部门删除

    Route::get('map', 'BasicController@map');//地图坐标
    Route::get('set_map_fiframe', 'BasicController@setMapFiframe');//地图坐标
    Route::post('map_update', 'BasicController@mapUpdate');//地图坐标保存

    Route::get('photo', 'PhotoController@index');//相册
    Route::post('photo/photoupload', 'PhotoController@photoUpload');//相册上传
    Route::get('photo/photodelete/{id}', 'PhotoController@photoDelete');//相册上传

    //搜索器资源控制器
    Route::resource('search', 'CompanySearchController');
    //账号设置
    Route::get('set_account', 'CompanyUserController@setAccount');
    //会员记录
    Route::get('member_records', 'ContractController@index');
    Route::get('start_stop', 'ContractController@startStop');
    Route::post('set_start_stop', 'ContractController@setStartStop');

    //企业ajax验证码 验证邮箱
    Route::post('email_send', 'CompanyUserController@emailSend');

    //验证绑定手机
    Route::post('bind_mobile', 'CompanyUserController@bindMobile');
    //修改密码
    Route::get('mod_password', 'CompanyUserController@modPassword');
    Route::post('post_mod_password', 'CompanyUserController@postModPassword');
    Route::post('ajax_pass', 'CompanyUserController@ajaxPass');

    //企业请求查看个人简历联系方式
    Route::post('personcontact', 'ResumeController@personContact');
    //企业邀请个人面试
    Route::post('inviteinterview', 'ResumeController@inviteInterview');
    //企业请求将个人纳入人才库->企业发布的工作列表
    Route::post('toshowcompanyjoblist', 'ResumeController@toShowCompanyJobList')->name("toShowCompanyJobList");

    //发送面试通知
    Route::post('interviewnote', 'InterviewController@setInterView')->name('interviewnote');
    //纳入人才库 分配岗位
    Route::post('distribution_job', 'InterviewController@distributionJob')->name('distributionJob');

    //纳入人才库
    Route::post('insert_personnel_library', 'InterviewController@insertPersonnelLibrary')->name('insertPersonnelLibrary');
    //取消纳入人才库
    Route::post('del_personnel_library', 'InterviewController@delPersonnelLibrary')->name('delPersonnelLibrary');

    //企业认证
    Route::get('license_sub', 'CompanyCertificationController@licenseSub');
    Route::match(['get', 'post'], 'license_store', 'CompanyCertificationController@licenseStore');//审核中
//    Route::post('license_store', 'CompanyCertificationController@licenseStore');//营业执照上传
    Route::post('license_upload', 'CompanyCertificationController@licenseUpload');//营业执照上传


    //我的订单
    Route::get('my_order', 'MyOrderController@index')->name("myOrder.index");
    //支付页面
    Route::get('my_order_pay', 'MyOrderController@myOrderPay')->name("myOrder.pay");
    //付款
    Route::match(['get', 'post'], 'my_order_to_pay', 'MyOrderController@myOrderToPay')->name("myOrder.toPay");
    //订单列表
    Route::get('my_order_list', 'MyOrderController@myOrderList')->name("myOrder.list");
    //取消订单
    Route::post('my_order_cancel', 'MyOrderController@myOrderCancel')->name("myOrder.cancel");


    //支付宝通知页面
    Route::get('my_order_alipay_notice', 'MyOrderController@alipayNotice')->name("myOrder.alipayNotice");

    //微信支付二维码组装地址
    Route::match(['get', 'post'], 'my_order_mpweixin_pay', 'MyOrderController@mpWeiXinPay')->name("myOrder.mpWeiXinPay");

    //智能刷新
    //Route::post('intelligent', 'JobController@intelligent');//营业执照上传
    Route::match(['get', 'post'], 'intelligent', 'JobController@intelligent');

    //微招聘
    Route::get('micro', 'BasicController@micro');

    //这里是英文版
    Route::get('english/jobpublish', 'English\JobController@publish');//英文职位显示页面

    Route::post('english/jobpublish', 'English\JobController@store');//发布英文职位

    Route::match(['get', 'post'], 'english/jobadmin', 'English\JobController@admin');//英文职位管理
    Route::get('english/job/{id}/edit', 'English\JobController@edit');//编辑英文职位
    Route::post('english/job/{id}/edit', 'English\JobController@update');//更新职位

    Route::match(['get', 'post'], 'english/resume_search', 'English\ResumeController@search');//英文简历搜索

    Route::get('english/browse_job', 'English\BrowseJobController@index');//谁浏览过我的职位置英文版
    Route::get('english/resume_favorite', 'English\FavoriteController@index');//企业英文人才库

    Route::match(['get', 'post'], 'english/resume_message', 'English\ResumeController@message');//简历消息/收到英文应聘简历

    Route::get('english/browse_company', 'English\BrowseCompanyController@index');//谁浏览过我

    Route::get('english/resume_buy', 'English\BuyController@index');//已购买英文简历
    Route::get('english/browse_resume', 'English\BrowseController@index');//浏览英文简历记录

    Route::get('english/basic_info', 'English\BasicController@info');//企业英文基本资料
    Route::post('english/basic_info', 'English\BasicController@postInfo');//企业基本资料提交

    Route::post('english/resume_status', 'English\ResumeController@status');//设置简历消息状况

    Route::get('english/iframe_map', 'English\RegisterController@iframeMap');//分帧地图
    //发送面试通知
    Route::post('english/interviewnote', 'English\InterviewController@setInterView')->name('interviewnote');

    //简历下载
    Route::get('resume_down/{resumeId}', 'ResumeDownController@resumeDown')->name("resume.down");

    //简历投诉
    Route::post('resume_complain', 'ResumeComplainController@resumeComplain');
    Route::post('resume_complain_send', 'ResumeComplainController@resumeComplainSend');

    //简历备注
    Route::post('resume_remark_edit', 'ResumeRemarkController@resumeRemarkEdit');//编辑
    Route::post('resume_remark_save', 'ResumeRemarkController@resumeRemarkSave');//保存

    //移动端
    Route::get('mobile', 'MobileController@mobile')->name("mobile");

});


//-------后台用户-------------------------------------------------------------------------------------------------------
//后台用户登录注册路由
Route::group(['namespace' => 'Admin\Auth', 'prefix' => 'admin'], function(){
    Route::auth();
    Route::get('login', 'AuthController@getLogin');
    Route::post('login', 'AuthController@postLogin');
    Route::get('register', 'AuthController@getRegister');
    Route::post('register', 'AuthController@postRegister');
    Route::get('logout', 'AuthController@logout');
});
//后台用户中心
Route::group(['namespace' => 'Admin', 'prefix' => 'admin', 'middleware' => ['adminAuth:admin']], function(){

    //后台首面 信息页面
    Route::get('/', 'AdminController@index');
    Route::get('info', 'AdminController@info');
    Route::post('get_now_time', 'AdminController@getNowTime');//获取当前时间
    Route::post('get_report_data', 'AdminController@getReportData');//获取报表数据

    //用户管理资源控制器
    Route::resource('admin_user', 'AdminUserController');
    //角色资源控制器
    Route::resource('role', 'RoleController');
    Route::get('role/permissions/{id}', 'RoleController@permissions');
    Route::post('role/store_permissions', 'RoleController@storePermissions');
    //权限资源控制器
    Route::resource('permission', 'PermissionController');
    Route::get('permission/create/{id}', 'PermissionController@create');
    Route::post('permission/change_order', 'PermissionController@changeOrder');
    //分类选项资源控制器
    Route::resource('coll_option', 'CollOptionController');
    Route::resource('coll_two_option', 'CollTwoOptionController');
    //分类资源控制器
    Route::resource('coll_category', 'CollCategoryController');
    //地区分类资源控制器
    Route::resource('coll_area', 'CollAreaController');
    Route::post('province_store', 'CollAreaController@provinceStore');
    //职位分类资源控制器
    Route::resource('coll_position', 'CollPositionController');
    Route::post('post_store', 'CollPositionController@postStore');

    //地(放点)分类资源控制器
    Route::resource('coll_place', 'CollPlaceController');
    Route::get('place_map', 'CollPlaceController@placeMap');

    //街道 乡镇坐标资源控制器
    Route::resource('coll_town', 'CollTownController');
    Route::match(['get', 'post'], 'town_list', 'CollTownController@index');
    Route::get('town_map', 'CollTownController@townMap');


    //菜单导航资源控制器
    Route::resource('menu_nav', 'MenuNavigationController');

    //招聘会设置资源控制器
    Route::resource('job_fair', 'JobFairController');
    Route::match(['get', 'post'], 'job_fair_list', 'JobFairController@index');
    Route::get('upload_url', 'JobFairController@uploadUrl');
    Route::post('upload_url', 'JobFairController@jobFairUpload');
    Route::get('signup/{id}', 'JobFairController@signUp');
    Route::match(['get', 'post'], 'signup/{id}', 'JobFairController@signUp');
    Route::post('signup_ok/{id}', 'JobFairController@signUpOk');
    Route::post('signup_batch_ok/{id}', 'JobFairController@signUpBatchOk');

    Route::match(['get', 'post'], 'job_fair_pic', 'JobFairController@jobFairPic');
    Route::post('upload_pic', 'JobFairController@uploadPic');
    Route::post('del_pic', 'JobFairController@delPic');
    //个人管理
    //审核简历
    Route::match(['get', 'post'], 'audit_resume', 'PersonalManageController@auditResume');
    Route::post('approved', 'PersonalManageController@approved');
    Route::post('del_resume', 'PersonalManageController@delResume');
    Route::post('batch_del_resume', 'PersonalManageController@batchDelResume');
    Route::post('dismissed_resume', 'PersonalManageController@dismissedResume');//驳回简历
    Route::get('personal_welcome/{uid}', 'PersonalManageController@personalWelcome');
    //智能刷新简历
    Route::match(['get', 'post'], 'smart_list', 'SmartRefreshResumeController@index');//智能刷新简历列表信息
    Route::post('smart_update', 'SmartRefreshResumeController@smartUpdate');//驳回简历

    //后台个人简历批量刷新
    Route::match(['get', 'post'], 'resume_admin_refresh', 'PersonalManageController@resumeAdminRefresh');
    Route::post('adminresumerefresh', 'PersonalManageController@adminResumeRefresh');
    //修改注册信息
    Route::get('job_mod_two/{uid}', 'PersonalManageController@jobModTwo');
    Route::post('job_store_two', 'PersonalManageController@jobStoreTwo');
    //个人用户注册
    Route::match(['get', 'post'], 'job_user_reg', 'PersonalManageController@jobUserReg');
    Route::get('job_user_mod/{uid}', 'PersonalManageController@jobUserMod');
    Route::post('job_user_store', 'PersonalManageController@jobUserStore');
    Route::get('job_user_del/{uid}/{personal_uid?}/{resume_id?}', 'PersonalManageController@jobUserDel');   //个人用户删除
    //个人充值提现记录表
    Route::match(['get', 'post'], 'resume_cash', 'PersonalCashController@resumeCash');
    Route::post('del_cash', 'PersonalCashController@delCash');//删除

    //企业管理
    //审核职位
    Route::match(['get', 'post'], 'audit_post', 'CompanyManageController@auditPost');
    Route::post('post_approved', 'CompanyManageController@postApproved');
    Route::post('post_del', 'CompanyManageController@postDel');
    Route::post('post_batch_del', 'CompanyManageController@postBatchDel');
    Route::get('company_welcome/{uid}', 'CompanyManageController@companyWelcome');
    //职位批量刷新
    Route::match(['get', 'post'], 'post_admin_refresh', 'CompanyManageController@postAdminRefresh');
    Route::post('adminpostrefresh', 'CompanyManageController@adminPostRefresh');
    //审核兼职
    Route::match(['get', 'post'], 'pt_audit_post', 'CompanyPartTimeManageController@auditPost');
    Route::get('pt_show_{id}', 'CompanyPartTimeManageController@show');//管理预览兼职详情
    Route::post('pt_post_approved', 'CompanyPartTimeManageController@postApproved');
    Route::post('pt_post_del', 'CompanyPartTimeManageController@postDel');
    Route::post('pt_post_batch_del', 'CompanyPartTimeManageController@postBatchDel');
    //企业定单管理
    Route::resource('company_order', 'CompanyOrderController');
    Route::match(['get', 'post'], 'company_order_index', 'CompanyOrderController@index');

    //Route::get('order_List', 'CompanyOrderController@orderList');
    //定单修改
    //Route::get('order_edit/{orderId}', 'CompanyOrderController@orderEdit');

    //修改注册信息
    Route::get('com_mod_two/{uid}', 'CompanyManageController@comModTwo');
    Route::post('com_store_two', 'CompanyManageController@comStoreTwo');
    //企业用户注册
    Route::match(['get', 'post'], 'com_user_reg', 'CompanyManageController@comUserReg');
    Route::get('com_user_mod/{uid}', 'CompanyManageController@comUserMod');
    Route::post('com_user_store', 'CompanyManageController@comUserStore');
    Route::get('com_user_del/{uid}/{com_id?}/{crm_com_id?}', 'CompanyManageController@comUserDel');//企业用户删除

    Route::match(['get', 'post'], 'com_basic_reg', 'CompanyManageController@comBasicReg');
    Route::match(['get', 'post'], 'micro_job/{com_id}', 'CompanyManageController@microJob');
    Route::get('go_com_about', 'CompanyManageController@goComAbout');//通过com_uid跳转到comabout
    //合同管理资源控制器
    Route::resource('contract', 'CompanyContractController', ['except' => ['create', 'index']]);
    Route::match(['get', 'post'], 'contract_index', 'CompanyContractController@index');
    Route::post('change_vip', 'CompanyContractController@changeVip');
    Route::post('del_contract_close', 'CompanyContractController@delContractClose');
    //会员套餐资源控制器
    Route::resource('vip_package', 'VipPackageController');
    //企业认证审核
    Route::match(['get', 'post'], 'com_check', 'CompanyCertificationController@comCheck');
    Route::get('pass_check', 'CompanyCertificationController@passCheck');
    Route::post('pass_batch_check', 'CompanyCertificationController@passBatchCheck');
    Route::post('fail_check', 'CompanyCertificationController@failCheck');
    Route::post('del', 'CompanyCertificationController@del');
    Route::post('del_batch', 'CompanyCertificationController@delBatch');
    //营销工具
    Route::resource('activity_com_red_packet', 'ActivityComRedPacketController');
    Route::get('activity_per_red_packet_log/{id}', 'ActivityPerRedPacketController@detail');//红包领取详情
    Route::resource('activity_per_red_packet', 'ActivityPerRedPacketController');   //商家推广
    //简历投诉管理
    Route::match(['get', 'post'], 'resume_complain', 'CompanyComplainController@resumeComplain');
    Route::post('down_complain', 'CompanyComplainController@downComplain');//单条下架
    Route::post('batch_down_complain', 'CompanyComplainController@batchDownComplain');//批量下架
    Route::post('del_complain', 'CompanyComplainController@delComplain');//单条删除
    Route::post('batch_del_complain', 'CompanyComplainController@batchDelComplain');//批量删除
    Route::post('dismissed_complain', 'CompanyComplainController@dismissedComplain');//单条驳回
    Route::post('batch_dismissed_complain', 'CompanyComplainController@batchDismissedComplain');//批量驳回
    Route::post('pass_complain', 'CompanyComplainController@passComplain');//单条跳过简历

    //广告管理资源控制器
    Route::resource('ad_manage', 'AdManageController');
    Route::match(['get', 'post'], 'ad_list', 'AdManageController@index');
    Route::post('activation', 'AdManageController@activation');
    Route::post('shield', 'AdManageController@shield');

    //广告站点资源控制器
    Route::resource('ad_site', 'AdSiteController');
    //广告位置资源控制器
    Route::resource('ad_slots', 'AdSlotsController');
    Route::get('shield_ad', 'AdSlotsController@shieldAd');//屏蔽广告
    Route::post('set_ad_sort', 'AdSlotsController@setAdSort');//设置广告排序
    //友情链接资源控制器
    Route::resource('links', 'LinksController');
    Route::match(['get', 'post'], 'link_list', 'LinksController@index');
    //友情链接资源控制器
    Route::resource('link_site', 'LinkSiteController');
    //地区分站资源控制器
    Route::resource('area_station', 'AreaStationController');
    Route::match(['get', 'post'], 'station_list', 'AreaStationController@index');

    //网站配置选项
    Route::get('webconfig', 'WebconfigController@index');
    Route::post('webconfig/modify', 'WebconfigController@modify');
    //讯搜设置页面
    Route::get('xsindex', 'XunSearchController@index');
    Route::get('insert_job', 'XunSearchController@insert_job');
    Route::get('insert_resume', 'XunSearchController@insert_resume');
    Route::post('rebuild_xs', 'XunSearchController@rebuildXS');//重构
    Route::post('read_log', 'XunSearchController@readLog');//读取日志
    //网站配置类别
    Route::get('webcatetroylist', 'WebconfigController@webCatetroyList')->name('webconfig.webCatetroyList');
    //网站配置类别添加
    Route::get('webcatetroyadd', 'WebconfigController@webCatetroyAdd')->name('webconfig.webCatetroyAdd');
    //网站配置类别保存
    Route::post('catetroysave', 'WebconfigController@catetroySave')->name('webconfig.catetroySave');
    //网站配置类别删除
    Route::get('catetroydestroy', 'WebconfigController@catetroyDestroy')->name('webconfig.catetroyDestroy');
    //网站配置类别修改
    Route::get('catetroyedit', 'WebconfigController@catetroyEdit')->name('webconfig.catetroyEdit');
    //网站配置保存类别修改
    Route::post('catetroyupdate', 'WebconfigController@catetroyUpdate')->name('webconfig.catetroyUpdate');
    //更新缓存
    Route::get('toplushcache', 'WebconfigController@toPlushCache');
    //标签列表
    Route::get('signlist', 'WebconfigController@toList')->name('webconfig.makelist');
    //标签创建
    Route::get('signcreate', 'WebconfigController@create')->name('webconfig.makeadd');
    //标签保存
    Route::post('signsave', 'WebconfigController@save')->name('webconfig.makesave');
    //标签编辑
    Route::get('signedit', 'WebconfigController@edit')->name('webconfig.makemodify');
    //标签修改保存
    Route::post('signeditsave', 'WebconfigController@editSave')->name('webconfig.makemodifysave');
    //标签删除
    Route::get('signdelete', 'WebconfigController@destroy')->name('webconfig.makedelete');
    //微信个人菜单创建或修改页面
    Route::get('modifymuneperson', 'MpWeiXinPersonController@modifyMunePerson');
    //微信个人菜单保存与更新
    Route::match(['get', 'post'], 'menuupdateperson', 'MpWeiXinPersonController@menuUpdatePerson');
    //微信企业菜单创建或修改页面
    Route::get('modifymunecompany', 'MpWeiXinCompanyController@modifyMuneCompany');
    //微信企业菜单保存与更新
    Route::match(['get', 'post'], 'menuupdatecompany', 'MpWeiXinCompanyController@menuUpdateCompany');

    //头像上传
    Route::post('imgupload', 'WorkerHandleController@imgUpload')->name("imgUpload");
    //员工管理
    Route::resource('workerhandle', 'WorkerHandleController');
    //资讯频道
    Route::match(['get', 'post'], 'news/upload', 'NewsController@upload');
    Route::get('news/upload', 'NewsController@config');
    //图片清理
    Route::get('news/clearpic', 'NewsController@clearPic');
    Route::get('news/toclearpic', 'NewsController@toClearPic');
    Route::resource('news', 'NewsController');
    Route::match(['get', 'post'], 'new_list', 'NewsController@index');
    //资讯分类管理
    Route::resource('newscategory', 'NewsCategoryController');
    //网站内容编辑
    //背景图片上传
    Route::post('bgimgupload', 'WebContentController@bgImgUpload')->name('WebContent.bgImgUpload');
    Route::resource('webcontent', 'WebContentController');
    Route::post('web_upload_url', 'WebContentController@webUploadUrl');
    Route::get('web_upload_url', 'WebContentController@uploadUrl');
    Route::post('web_upload_url', 'WebContentController@webUploadUrl');

    //*****************************************************************************************************************
    //采集功能列表简历
    Route::get('resume_add', 'CollectionController@resumeAdd');//添加简历采集网址
    Route::get('resume_del', 'CollectionController@resumeDel')->name('resume_del');;//去除已存在简历
    Route::post('del_tmp_resume', 'CollectionController@delTmpResume')->name('del_tmp_resume');;//去除已存在简历
    Route::match(['get', 'post'], 'start_resume', 'CollectionController@startResume');//开始简历采集
    Route::match(['get', 'post'], 'resume_list', 'CollectionController@resumeList');//临时采集简历列表
    Route::match(['get', 'post'], 'formal_resume_list', 'CollectionController@formalResumeList');//已添加正式库简历列表
    //采集功能列表企业
    Route::get('company_add', 'CollectionController@companyAdd');//添加企业采集网址
    Route::match(['get', 'post'], 'start_company', 'CollectionController@startCompany');//开始企业采集
    Route::match(['get', 'post'], 'company_list', 'CollectionController@companyList');//临时采集企业列表
    Route::post('company_del/{id}', 'CollectionController@companyDel');//删除采集企业

    //采集功能列表
    Route::post('del_account/{id}', 'CollectionController@delAccount');//删除采集登录账号
    Route::get('edit_account/{id}', 'CollectionController@editAccount');//编辑采集登录账号
    Route::post('update_account', 'CollectionController@updateAccount');//更新采集登录账号

    Route::match(['get', 'post'], 'resume_jump/{resume_id}', 'CollectionResumeController@resumeJump');//跳过该简历
    Route::match(['get', 'post'], 'resume_next/{resume_id}', 'CollectionResumeController@resumeNext');//显示下一条
    //我的临时采集简历管理
    Route::get('resume_tmp_manage', 'CollectionResumeController@resumeTmpManage');//手动添加临时采集简历
    //我的简历基本信息求职意向自我评价
    Route::post('resume_basic', 'CollectionResumeController@resumeBasic');
    Route::post('resume_objective', 'CollectionResumeController@resumeObjective');
    Route::post('resume_evaluation', 'CollectionResumeController@resumeEvaluation');
    Route::post('jump_resume', 'CollectionResumeController@jumpResume');
    //工作经历
    Route::post('add_work_exp', 'CollectionResumeController@addWorkExp');
    Route::post('mod_work_exp', 'CollectionResumeController@modWorkExp');
    Route::post('edit_work_exp', 'CollectionResumeController@editWorkExp');
    Route::post('del_work_exp', 'CollectionResumeController@delWorkExp');
    //教育经历
    Route::post('add_edu_exp', 'CollectionResumeController@addEduExp');
    Route::post('mod_edu_exp', 'CollectionResumeController@modEduExp');
    Route::post('edit_edu_exp', 'CollectionResumeController@editEduExp');
    Route::post('del_edu_exp', 'CollectionResumeController@delEduExp');
    //项目经验
    Route::post('add_project_exp', 'CollectionResumeController@addProjectExp');
    Route::post('mod_project_exp', 'CollectionResumeController@modProjectExp');
    Route::post('edit_project_exp', 'CollectionResumeController@editProjectExp');
    Route::post('del_project_exp', 'CollectionResumeController@delProjectExp');
    //语言能力
    Route::post('add_language', 'CollectionResumeController@addLanguage');
    //技能专长
    Route::post('add_skill', 'CollectionResumeController@addSkill');
    //证书
    Route::post('add_certificate', 'CollectionResumeController@addCertificate');
    //其它信息
    Route::post('add_other', 'CollectionResumeController@addOther');
    Route::post('mod_other', 'CollectionResumeController@modOther');
    Route::post('edit_other', 'CollectionResumeController@editOther');
    Route::post('del_other', 'CollectionResumeController@delOther');
//    //我的作品
//    Route::post('add_works', 'CollectionResumeController@addWorks');
//    Route::post('mod_works', 'CollectionResumeController@modWorks');
//    Route::post('edit_works', 'CollectionResumeController@editWorks');
//    Route::post('del_works', 'CollectionResumeController@delWorks');
    //添加正式库
    Route::post('add_formal_lib', 'CollectionResumeController@addFormalLib');

    Route::get('image_gif', 'CollectionController@imageGif');

    //安全模块 防cc攻击
    Route::get('cc_set', 'SafetyController@ccSet');
    Route::post('post_cc_set', 'SafetyController@postCcSet');
    Route::get('cc_api_set', 'SafetyController@ccApiSet');
    Route::post('post_cc_api_set', 'SafetyController@postApiCcSet');
    Route::match(['get', 'post'], 'cc_list', 'SafetyController@ccList');//
    Route::post('cc_add', 'SafetyController@ccAdd');
    Route::post('cc_del', 'SafetyController@ccDel');
    Route::match(['get', 'post'], 'cc_all_info', 'SafetyController@ccAllInfo');//
    Route::post('cc_clear', 'SafetyController@ccClear');
    //用户试错记录
    Route::match(['get', 'post'], 'personal_trial', 'SafetyController@personalTrial');//
    Route::match(['get', 'post'], 'company_trial', 'SafetyController@companyTrial');//

    //黑名单控制器
    Route::resource('blacklist', 'BlacklistController');
    //企业浏览简历统计
    Route::match(['get', 'post'], 'resume_browse', 'CompanyBrowseController@resumeBrowse');//

    //投递简历统计
    Route::match(['get', 'post'], 'send_resume', 'ResumeSendController@sendResume');//

    //才情报告
    Route::get('talent_report_list', 'TalentReportController@talentReportList');
    Route::post('talent_report_province', 'TalentReportController@talentReportProvince');//省份人数
    Route::post('talent_report_education', 'TalentReportController@talentReportEducation');//学历分布
    Route::post('talent_report_age', 'TalentReportController@talentReportAge');//年龄分布


    //岗位模板分类管理
    Route::resource('job_template', 'CompanyJobTemplateController');
    Route::match(['get', 'post'], 'job_template/job_list', 'CompanyJobTemplateController@index');//

    //快速创建简历-------------------------------------------------------------------------------------------------------
    Route::get('quick_resume', 'ResumeController@quickResume');
    Route::post('store_quick_resume', 'ResumeController@storeQuickResume');
    //我的快速简历管理
    Route::get('quick_resume_manage/{resume_id}', 'ResumeController@resumeManage');//手动编辑简历
    Route::post('uploadavatar', 'ResumeController@uploadAvatar');

    //我的简历基本信息求职意向自我评价
    Route::post('quick_resume_basic', 'ResumeController@resumeBasic');
    Route::post('quick_resume_objective', 'ResumeController@resumeObjective');
    Route::post('quick_resume_evaluation', 'ResumeController@resumeEvaluation');
    Route::post('quick_jump_resume', 'ResumeController@jumpResume');
    //工作经历
    Route::post('quick_add_work_exp', 'ResumeController@addWorkExp');
    Route::post('quick_mod_work_exp', 'ResumeController@modWorkExp');
    Route::post('quick_edit_work_exp', 'ResumeController@editWorkExp');
    Route::post('quick_del_work_exp', 'ResumeController@delWorkExp');
    //教育经历
    Route::post('quick_add_edu_exp', 'ResumeController@addEduExp');
    Route::post('quick_mod_edu_exp', 'ResumeController@modEduExp');
    Route::post('quick_edit_edu_exp', 'ResumeController@editEduExp');
    Route::post('quick_del_edu_exp', 'ResumeController@delEduExp');
    //项目经验
    Route::post('quick_add_project_exp', 'ResumeController@addProjectExp');
    Route::post('quick_mod_project_exp', 'ResumeController@modProjectExp');
    Route::post('quick_edit_project_exp', 'ResumeController@editProjectExp');
    Route::post('quick_del_project_exp', 'ResumeController@delProjectExp');
    //语言能力
    Route::post('quick_add_language', 'ResumeController@addLanguage');
    //技能专长
    Route::post('quick_add_skill', 'ResumeController@addSkill');
    //证书
    Route::post('quick_add_certificate', 'ResumeController@addCertificate');
    //其它信息
    Route::post('quick_add_other', 'ResumeController@addOther');
    Route::post('quick_mod_other', 'ResumeController@modOther');
    Route::post('quick_edit_other', 'ResumeController@editOther');
    Route::post('quick_del_other', 'ResumeController@delOther');
    //我的作品
    Route::post('quick_add_works', 'ResumeController@addWorks');
    Route::post('quick_mod_works', 'ResumeController@modWorks');
    Route::post('quick_edit_works', 'ResumeController@editWorks');
    Route::post('quick_del_works', 'ResumeController@delWorks');
    //作品图片上传
    Route::post('fileupload', 'ResumeController@fileUpload');

});

//-------全局api--------------------------------------------------------------------------------------------------------
//全局api接口

Route::group(['namespace' => 'Common', 'prefix' => 'common'], function(){
    Route::match(['get', 'post'], 'two_options', 'OptionTwoController@twoOptions');//获取分类二级json列表
    Route::post('ajax_code', 'AjaxCodeController@ajaxCode');//ajaxcode验证码验证
    Route::post('ajax_sms_code', 'AjaxCodeController@smsCode');//ajaxcode短信验证码验证
});

Route::group(['namespace' => 'Common', 'prefix' => 'common',], function(){
    Route::match(['get', 'post'], 'province', 'AreaController@province');//获取省份json例表
    Route::match(['get', 'post'], 'shortcut', 'AreaController@shortcut');//获取省份json例表
    Route::match(['get', 'post'], 'area/{pid}', 'AreaController@area');//获取地区json例表
    Route::match(['get', 'post'], 'city/{pid}', 'AreaController@city');//获取县市区json例表
    Route::match(['get', 'post'], 'two_area/{pid}', 'AreaController@two_area');//获取地区json例表
    Route::match(['get', 'post'], 'two_city/{pid}', 'AreaController@two_city');//获取地区json例表
    Route::match(['get', 'post'], 'town', 'AreaController@town');//获取乡镇json例表
    Route::match(['get', 'post'], 'provincearea', 'AreaController@provinceArea');//获取省份地区市二级
    Route::match(['get', 'post'], 'complete', 'AreaController@complete');//获取省份地区市三级
    Route::match(['get', 'post'], 'option/{sign}.ds', 'OptionController@js');//菜单项js//多个sign可用"-"分开,all--代表定义好的部分或全部
    Route::match(['get', 'post'], 'option/json/{sign}', 'OptionController@json');//菜单项json
    Route::match(['get', 'post'], 'logininfo', 'LoginController@info');//登陆信息
    Route::match(['get', 'post'], 'get_area_all', 'AreaController@getAreaAll');//登陆信息

    Route::match(['get', 'post'], 'place', 'PlaceController@place');//获取地标json例表
    //手机站
    Route::match(['get', 'post'], 'province_area.ds', 'AreaController@province_area');//获取省份json例表和当前地区的县级市(附带市)
    Route::match(['get', 'post'], 'curr_city/{cid}', 'AreaController@currCity');//单个获取当前城市县级市
    Route::match(['get', 'post'], 'get_area_name/{arr}', 'AreaController@getAreaName');//多级选项获取当前城市县级市
    Route::match(['get', 'post'], 'city_two/{pid}', 'AreaController@cityTwo');//获取县市区json例表(附带市)
    Route::match(['get', 'post'], 'get_city_name/{pid}', 'AreaController@getCityName');//获取县市区乡镇json例表(附带市)
});

Route::group(['namespace' => 'Common', 'prefix' => 'common',], function(){
    Route::match(['get', 'post'], 'firstposition', 'PositionController@firstPosition');//获取一级职位json例表
    Route::match(['get', 'post'], 'secondposition/{pid}', 'PositionController@secondPosition');//获取二级职位json例表
    Route::match(['get', 'post'], 'thirdposition/{pid}', 'PositionController@thirdPosition');//获取三级职位json例表
    Route::match(['get', 'post'], 'positionalltwo', 'PositionController@allTwo');//获取职位一、二级
    Route::match(['get', 'post'], 'positionallthree', 'PositionController@allThree');//获取职位一、二、三级
    Route::match(['get', 'post'], 'searchthree/{keyword}', 'PositionController@searchThree');//搜索职位三级
    //手机站
    Route::match(['get', 'post'], 'oneposition.ds', 'PositionController@onePosition');//获取一级职位json例表js
    Route::match(['get', 'post'], 'get_position_name/{arr}', 'PositionController@getPositionName');//多级选项获取当前职位名称
});

//英文版ajax
Route::group(['namespace' => 'Common\English', 'prefix' => 'common/en',], function(){
    Route::match(['get', 'post'], 'firstposition', 'EnPositionController@firstPosition');//获取一级职位json例表
    Route::match(['get', 'post'], 'secondposition/{pid}', 'EnPositionController@secondPosition');//获取二级职位json例表
    Route::match(['get', 'post'], 'thirdposition/{pid}', 'EnPositionController@thirdPosition');//获取三级职位json例表
    Route::match(['get', 'post'], 'positionalltwo', 'EnPositionController@allTwo');//获取职位一、二级
    Route::match(['get', 'post'], 'positionallthree', 'EnPositionController@allThree');//获取职位一、二、三级
    Route::match(['get', 'post'], 'searchthree/{keyword}', 'EnPositionController@searchThree');//搜索职位三级

    Route::match(['get', 'post'], 'two_area/{pid}', 'EnAreaController@two_area');//获取地区json例表
    Route::match(['get', 'post'], 'two_city/{pid}', 'EnAreaController@two_city');//获取地区json例表

    Route::match(['get', 'post'], 'province', 'EnAreaController@province');//获取省份json例表
    Route::match(['get', 'post'], 'shortcut', 'EnAreaController@shortcut');//获取省份json例表
    Route::match(['get', 'post'], 'area/{pid}', 'EnAreaController@area');//获取地区json例表
    Route::match(['get', 'post'], 'city/{pid}', 'EnAreaController@city');//获取县市区json例表
    Route::match(['get', 'post'], 'provincearea', 'EnAreaController@provinceArea');//获取省份地区市二级
    Route::match(['get', 'post'], 'complete', 'EnAreaController@complete');//获取省份地区市三级
    Route::match(['get', 'post'], 'option/{sign}.ds', 'OptionController@js');//菜单项js//多个sign可用"-"分开,all--代表定义好的部分或全部
    Route::match(['get', 'post'], 'option/json/{sign}', 'OptionController@json');//菜单项json
});

//----------------------------------------------------------------------------------------------------------------------

//-------手机站----------------------------------------------------------------------------------------------------------
//前台带电脑切换中间件
Route::group(['namespace' => 'Mobile\Index', 'prefix' => 'mobile', 'middleware' => ['isDesktop']], function(){
    //首页
    Route::get('/city/{station?}', 'IndexController@index');
    Route::get('/', 'IndexController@index');

    //找工作
    Route::match(['get', 'post'], 'job', 'CompanyJobController@job');
    Route::get('jobinfo_{job_id}.html', 'CompanyJobController@jobInfo')->middleware('weiXinPersonalAuth:personal');
    Route::get('comabout_{cid}.html', 'CompanyJobController@comAbout');

    //简历列表
    Route::match(['get', 'post'], 'personnel', 'ResumeController@personnel');
    Route::get('resume_{id}.html', 'ResumeController@personalInfo')->middleware('weiXinCompanyAuth:company');
    //资讯
    Route::match(['get', 'post'], 'news', 'NewsController@news');
    Route::get('newsinfo_{id}.html', 'NewsController@newsInfo');
});
//前台无中间件
Route::group(['namespace' => 'Mobile\Index', 'prefix' => 'mobile'], function(){
    Route::get('setmap_{com_id}.html', 'CompanyBasicController@setMap');//企业地图
    Route::get('popular_search', 'IndexController@popularSearch');//搜索框独立页
    Route::get('vip_login', 'IndexController@vipLogin');

});
//前台无中间件无url—prefix
Route::group(['namespace' => 'Mobile\Index'], function(){
    //app下载  没有安装app的 微信扫码跳转地址
    Route::get('app_code', 'AppController@appMobileDown');
    Route::get('app_hr', 'AppController@appMobileDownHr');
});


//-------手机个人用户-------------------------------------------------------------------------------------------------------
//个人找回密码
Route::group(['namespace' => 'Mobile\Personal', 'prefix' => 'mobile/personal'], function(){
    Route::get('find_password', 'PasswordController@find');// 个人找回密码页
    Route::get('find_password2', 'PasswordController@find2');// 个人找回密码页
    Route::post('mobile_find', 'PasswordController@mobileFind');//手机找回
    Route::post('mobile_get_code', 'PasswordController@getCode');//获取手机验证码
    Route::post('email_find', 'PasswordController@emailFind');//邮箱找回
    Route::get('find_password3', 'PasswordController@find3');//第三步重置密码
    Route::post('find_password3', 'PasswordController@set');//设置密码
    Route::get('find_password4', 'PasswordController@find4');//成功提示
});

//个人用户登录注册路由用户认证
Route::group(['namespace' => 'Mobile\Personal\Auth', 'prefix' => 'mobile/personal'], function(){
    Route::auth();
    Route::get('login', 'AuthController@getLogin');
    Route::post('login', 'AuthController@postLogin');
    Route::get('register', 'AuthController@getRegister');
    Route::post('register', 'AuthController@postRegister');
    Route::get('logout', 'AuthController@logout');
});

//手机个人ajax验证路由
Route::group(['namespace' => 'Mobile\Personal', 'prefix' => 'mobile/personal'], function(){
    //个人注册ajax验证路由
    Route::post('ajax_mobile', 'RegisterController@ajaxMobile');
    Route::post('ajax_mob_code', 'RegisterController@ajaxMobCode');
    //个人登录ajax验证路由
    Route::post('ajax_login', 'LoginController@ajaxLogin');
    Route::post('ajax_mob_login_code', 'LoginController@ajaxMobLoginCode');
    Route::post('ajax_mobile_login', 'LoginController@ajaxMobileLogin');
    Route::post('ajax_sms_url', 'RegisterController@ajaxSmsUrl');
});

//手机个人用户登录路由 中间件阻止用户
Route::group(['namespace' => 'Mobile\Personal', 'prefix' => 'mobile/personal', 'middleware' => ['weiXinPersonalAuth:personal', 'mobilePersonalAuth:personal']], function(){
    //账户中心
    Route::get('welcome', 'WelcomeController@index');
    //我的简历
    Route::get('my_resume', 'ResumeController@myResume');

    Route::get('set_default/{id}', 'ResumeController@setDefault');//设置默认简历
    Route::post('del_resume/{id}', 'ResumeController@delResume');//删除简历
    //重命名简历名称
    Route::get('rename', 'ResumeController@rename');
    Route::post('post_rename', 'ResumeController@postRename');
    //创建简历
    Route::get('resume_create', 'ResumeController@resumeCreate');
    Route::post('resume_create_post', 'ResumeController@resumeCreatePost');
    //刷新简历
    Route::get('resume_refresh', 'ResumeController@resumeRefresh');
    Route::post('post_resume_refresh', 'ResumeController@resumeRefreshPost');
    //隐私设置
    Route::match(['get', 'post'], 'privacy', 'ResumeController@privacy');
    //我的简历管理
    Route::get('resume_manage', 'ResumeController@resumeManage');
    //上传头像
    Route::post('uploadavatar', 'ResumeController@uploadAvatar');
    //我的简历基本信息求职意向自我评价
    Route::get('edit_basic', 'ResumeController@editBasic');   //编辑基本信息
    Route::post('resume_basic', 'ResumeController@resumeBasic');//更新基本信息
    Route::get('edit_objective', 'ResumeController@editObjective');//编辑求职意向
    Route::post('resume_objective', 'ResumeController@resumeObjective');//更新求职意向
    Route::get('edit_evaluation', 'ResumeController@editEvaluation');//编辑自我评价
    Route::post('resume_evaluation', 'ResumeController@resumeEvaluation');//更新自我评价
    //工作经历
    Route::get('add_work_exp', 'ResumeController@addWorkExp');//添加工作经历
    Route::post('add_work_exp', 'ResumeController@addWorkExpPost');//添加工作经历提交
    Route::get('edit_work_exp/{id}', 'ResumeController@editWorkExp');//编辑工作经历
    Route::post('edit_work_exp', 'ResumeController@editWorkExpPost');//编辑工作经历提交
    Route::post('del_work_exp', 'ResumeController@delWorkExp');//删除工作经历提交
    //教育经历
    Route::get('add_edu_exp', 'ResumeController@addEduExp');//添加教育经历
    Route::post('add_edu_exp', 'ResumeController@addEduExpPost');//添加教育经历提交
    Route::get('edit_edu_exp/{id}', 'ResumeController@editEduExp');//编辑教育经历
    Route::post('edit_edu_exp', 'ResumeController@editEduExpPost');//编辑教育经历提交
    Route::post('del_edu_exp', 'ResumeController@delEduExp');//删除教育经历提交
    //培训经历
    Route::get('add_train_exp', 'ResumeController@addTrainExp');//添加培训经历
    Route::post('add_train_exp', 'ResumeController@addTrainExpPost');//添加培训经历提交
    Route::get('edit_train_exp/{id}', 'ResumeController@editTrainExp');//编辑培训经历
    Route::post('edit_train_exp', 'ResumeController@editTrainExpPost');//编辑培训经历提交
    Route::post('del_train_exp', 'ResumeController@delTrainExp');//删除培训经历提交
    //项目经验
    Route::get('add_project_exp', 'ResumeController@addProjectExp');//添加项目经验
    Route::post('add_project_exp', 'ResumeController@addProjectExpPost');//添加项目经验提交
    Route::get('edit_project_exp/{id}', 'ResumeController@editProjectExp');//编辑项目经验
    Route::post('edit_project_exp', 'ResumeController@editProjectExpPost');//编辑项目经验提交
    Route::post('del_project_exp', 'ResumeController@delProjectExp');//删除项目经验提交
    //语言能力
    Route::get('add_language', 'ResumeController@addLanguage');//添加语言能力
    Route::post('add_language', 'ResumeController@addLanguagePost');//添加语言能力提交
    Route::get('edit_language/{id}', 'ResumeController@editLanguage');//编辑语言能力
    Route::post('edit_language', 'ResumeController@editLanguagePost');//编辑语言能力提交
    Route::post('del_language', 'ResumeController@delLanguage');//删除语言能力提交
    //技能专长
    Route::get('add_skill', 'ResumeController@addSkill');//添加技能专长
    Route::post('add_skill', 'ResumeController@addSkillPost');//添加技能专长提交
    Route::get('edit_skill/{id}', 'ResumeController@editSkill');//编辑技能专长
    Route::post('edit_skill', 'ResumeController@editSkillPost');//编辑技能专长提交
    Route::post('del_skill', 'ResumeController@delSkill');//删除技能专长提交
    //证书
    Route::get('add_certificate', 'ResumeController@addCertificate');//添加证书
    Route::post('add_certificate', 'ResumeController@addCertificatePost');//添加证书提交
    Route::get('edit_certificate/{id}', 'ResumeController@editCertificate');//编辑证书
    Route::post('edit_certificate', 'ResumeController@editCertificatePost');//编辑证书提交
    Route::post('del_certificate', 'ResumeController@delCertificate');//删除证书提交
    //其它信息
    Route::get('add_other', 'ResumeController@addOther');//添加其它信息
    Route::post('add_other', 'ResumeController@addOtherPost');//添加其它信息提交
    Route::get('edit_other/{id}', 'ResumeController@editOther');//编辑其它信息
    Route::post('edit_other', 'ResumeController@editOtherPost');//编辑其它信息提交
    Route::post('del_other', 'ResumeController@delOther');//删除其它信息提交
    //我的作品
    Route::get('add_works', 'ResumeController@addWorks');//添加我的作品
    Route::post('add_works', 'ResumeController@addWorksPost');//添加我的作品提交
    Route::get('edit_works/{id}', 'ResumeController@editWorks');//编辑我的作品
    Route::post('edit_works', 'ResumeController@editWorksPost');//编辑我的作品提交
    Route::post('del_works', 'ResumeController@delWorks');//删除我的作品提交

    //面试通知
    Route::get('interview', 'InterviewController@interview');
    Route::post('interview_del', 'InterviewController@interviewDel');//面试记录删除
    //职位收藏夹
    Route::get('favorites', 'FavoritesController@favorites');
    Route::post('favorites_send', 'FavoritesController@favoritesSend');
    Route::post('favorites_curr_del', 'FavoritesController@favoritesCurrDel');

    //简历投递记录
    Route::get('resume_send', 'ResumeSendController@resumeSend');
    Route::post('post_del', 'ResumeSendController@postDel');


    //谁浏览了我
    Route::get('browse_resume', 'BrowseResumeController@browseResume');
    //浏览企业记录
    Route::get('browse_company', 'BrowseCompanyController@browseCompany');
    //浏览职位记录
    Route::get('browse_job', 'BrowseJobController@browseJob');
    //搜索器资源控制器列表
    Route::resource('search', 'SearchEngineController', ['only' => ['index']]);
    //账号设置
    Route::get('set_account', 'PersonalUserController@setAccount');
    //修改密码
    Route::get('mod_password', 'PersonalUserController@modPassword');
    Route::post('post_mod_password', 'PersonalUserController@postModPassword');
    Route::post('ajax_pass', 'PersonalUserController@ajaxPass');


    //设置个人cookie
    Route::get('set_personal_cookie', 'PersonalCookieController@setPersonalCookie');
    //cookieajax刷新简历
    Route::get('cookie_resume_refresh', 'PersonalCookieController@cookieResumeRefresh');
});


//-------手机企业用户-------------------------------------------------------------------------------------------------------

//企业找回密码
Route::group(['namespace' => 'Mobile\Company', 'prefix' => 'mobile/company'], function(){
    Route::get('find_password', 'PasswordController@find');// 个人找回密码页
    Route::get('find_password2', 'PasswordController@find2');// 个人找回密码页
    Route::post('mobile_find', 'PasswordController@mobileFind');//手机找回
    Route::post('mobile_get_code', 'PasswordController@getCode');//获取手机验证码
    Route::post('email_find', 'PasswordController@emailFind');//邮箱找回
    Route::get('find_password3', 'PasswordController@find3');//第三步重置密码
    Route::post('find_password3', 'PasswordController@set');//设置密码
    Route::get('find_password4', 'PasswordController@find4');//成功提示
});

//企业用户登录注册路由用户认证
Route::group(['namespace' => 'Mobile\Company\Auth', 'prefix' => 'mobile/company'], function(){
    Route::auth();
    Route::get('login', 'AuthController@getLogin');
    Route::post('login', 'AuthController@postLogin');
    Route::get('register', 'AuthController@getRegister');
    Route::post('register', 'AuthController@postRegister');
    Route::get('logout', 'AuthController@logout');
});
//企业用户路由
Route::group(['namespace' => 'Mobile\Company', 'prefix' => 'mobile/company'], function(){
    //ajax验证注册路由
    Route::post('ajax_company_login', 'LoginController@ajaxCompanyLogin');
    //企业短信验证
    Route::post('ajax_mob_code', 'RegisterController@ajaxMobCode');

//    Route::post('ajax_com_code', 'CompanyUserController@ajaxComCode');
//    Route::post('ajax_com_sms', 'CompanyUserController@ajaxComSms');
    //注册
//    Route::get('register','RegisterController@index');
});

////企业手机用户登录路由 中间件阻止用户

Route::group(['namespace' => 'Mobile\Company', 'prefix' => 'mobile/company', 'middleware' => ['weiXinCompanyAuth:company', 'mobileCompanyAuth:company']], function(){
    //注册
    Route::get('register_basic', 'RegisterController@registerBasic');
    Route::post('post_register_basic', 'RegisterController@postRegisterBasic');
    Route::get('iframe_map', 'RegisterController@iframeMap');
    //企业账户中心
    Route::get('welcome', 'WelcomeController@index');//欢迎窗口
    Route::post('logoupload', 'BasicController@logoUpload');//logo上传
//
    Route::get('jobpublish', 'JobController@publish');//发布职位
    Route::post('jobpublish', 'JobController@store');//发布职位提交
    Route::match(['get', 'post'], 'jobadmin', 'JobController@admin');//职位管理
    Route::match(['get', 'post'], 'job_status', 'JobController@status');//设置状态
    Route::post('urgent', 'JobController@urgent');//职位加急
    Route::get('job/{id}/edit', 'JobController@edit');//编辑职位
    Route::post('job/{id}/edit', 'JobController@update');//更新职位
    Route::match(['get', 'post'], 'refresh', 'JobController@refresh');//职位刷新
//    Route::get('intelligent_search', 'IntelligentController@search');//智能简历推荐搜索

    Route::get('browse_job', 'BrowseJobController@index');//谁浏览过我的职位置
    Route::post('browse_job_tofavorite', 'BrowseJobController@toFavorite');//将谁浏览过我的职位置放入人才库
//
    //简历管理
    Route::get('resume_manage', 'ResumeController@index');//简历管理
    Route::match(['get', 'post'], 'resume_message', 'ResumeController@message');//简历消息/收到应聘简历
//    Route::post('resume_status', 'ResumeController@status');//设置简历消息状况
    Route::post('resume_destroy', 'ResumeController@destroy');//删除简历
//    Route::post('resume_tofavorite', 'ResumeController@toFavorite');//收到简历放入人才库
//
    Route::get('resume_favorite', 'FavoriteController@index');//企业人才库
    Route::post('resume_favorite_status', 'FavoriteController@status');//删除企业人才库
//
    Route::get('resume_buy', 'BuyController@index');//已购买简历
    Route::get('browse_resume', 'BrowseController@index');//浏览简历记录
    Route::get('browse_company', 'BrowseCompanyController@index');//谁浏览过我
//

    //企业请求查看个人简历联系方式
    Route::post('personcontact', 'ResumeController@personContact');
    //邀请面试
    Route::post('inviteinterview', 'ResumeController@inviteInterview');
    Route::match(['get', 'post'], 'interview_manage', 'InterviewController@message');//邀约面试记录
    Route::post('interview_tofavorite', 'InterviewController@tofavorite');//放入企业人才库
//    Route::post('interview_destroy', 'InterviewController@destroy');//删除人才库
//
//
    Route::get('basic_info', 'BasicController@info');//企业基本资料
    Route::post('basic_info', 'BasicController@postInfo');//企业基本资料提交
//    Route::get('go_home', 'BasicController@goHome');//转到招聘主页
//
    Route::resource('department', 'DepartmentController');//部门资源管理器

    //搜索器资源控制器
    Route::resource('search', 'CompanySearchController', ['only' => ['index']]);

    //账号设置
    Route::get('set_account', 'CompanyUserController@setAccount');
//    //会员记录
//    Route::get('member_records', 'ContractController@index');

    //修改密码
    Route::get('mod_password', 'CompanyUserController@modPassword');
    Route::post('post_mod_password', 'CompanyUserController@postModPassword');
    Route::post('ajax_pass', 'CompanyUserController@ajaxPass');
//    //发送面试通知
//    Route::post('interviewnote', 'InterviewController@setInterView')->name('interviewnote');
//    Route::post('interviewnote', 'InterviewController@postInterView');

});


/*****************1wyun 开放平台接口*********************/
Route::group(['namespace' => 'Open', 'prefix' => 'open'], function(){
    //输出接口
    Route::get('job_list', 'JobController@index');
    Route::get('job_info', 'JobController@jobInfo');
    Route::get('resume_list', 'ResumeController@index');
    Route::get('resume_show', 'ResumeController@show');

    //调用接口
    Route::get('job_search', 'JobSearchController@index');
    //调用接口
    Route::get('resume_search', 'ResumeSearchController@index');
});


//接收评测结果
Route::group(['namespace' => 'Personal', 'prefix' => 'personal'], function(){
    Route::match(['get', 'post'], 'get_module', 'ApmController@getModule')->name('getModule');
});


//兼职频道-前台
Route::group(['namespace' => 'PartTime'], function(){
    //兼职招聘聘前台模块
    Route::match(['post', 'get'], 'jianzhi', 'AplForCtlController@index');//兼职列表
    Route::get('jianzhi_{id}', 'AplForCtlController@show');//兼职详情
    Route::get('pt/traffic', 'AplForCtlController@trafficMap');//加载地图
});
//兼职频道-后台
Route::group(['namespace' => 'PartTime', 'prefix' => 'company', 'middleware' => ['companyAuth:company']], function(){
    //兼职招聘后台模块-首页
    Route::get('pt_index', 'RecruitController@index');//后台兼职首页
    Route::get('pt_refresh_all', 'RecruitController@refreshAll');//后台刷新全部
    //兼职招聘后台模块-报名管理
    Route::get('pt_sign_up', 'RecruitController@signUp');//后台兼职报名管理列表
    Route::post('pt_sign_status', 'RecruitController@signStatus');//后台报名处理
    Route::get('pt_resume_{id}', 'RecruitController@viewResume');//后台查看兼职简历操作
    //兼职招聘后台模块-兼职管理
    Route::get('pt_manage', 'RecruitController@manage');//后台兼职职位管理列表
    Route::get('pt_show_{id}', 'RecruitController@show');//企业预览兼职详情
    Route::match(['post', 'get'], 'pt_del', 'RecruitController@delete');//后台删除兼职职位
    Route::get('pt_change_status', 'RecruitController@changeStatus');//后台更改职位状态
    Route::post('pt_refresh', 'RecruitController@refresh');//后台刷新兼职职位
    Route::get('pt_create', 'RecruitController@create');//后台兼职职位创建页面
    Route::post('pt_store', 'RecruitController@store');//后台兼职职位创建操作
    Route::get('pt_edit_{id}', 'RecruitController@edit');//后台兼职职位编辑页面
    Route::post('pt_update', 'RecruitController@update');//后台兼职职位更新操作
});



